diff options
Diffstat (limited to 'packages/astro/test/fixtures/reroute/src/pages/auth/[id].astro')
-rw-r--r-- | packages/astro/test/fixtures/reroute/src/pages/auth/[id].astro | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/astro/test/fixtures/reroute/src/pages/auth/[id].astro b/packages/astro/test/fixtures/reroute/src/pages/auth/[id].astro new file mode 100644 index 000000000..f60d2b807 --- /dev/null +++ b/packages/astro/test/fixtures/reroute/src/pages/auth/[id].astro @@ -0,0 +1,23 @@ +--- + +export function getStaticPaths( ) { + return [{ + params: { + id: "1234" + } + }] +} + +const { id } = Astro.params; +const auth = Astro.locals.auth; +--- +<html> +<head> + <title>Index with params</title> +</head> +<body> +<h1>Index with params</h1> +<p id="params">Param: {id}</p> +<p id="locals">Locals: {auth}</p> +</body> +</html> |